﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Radiation___IM.ApiCommands
{
    public class ClientSetInvisible: ICommand
    {
        private readonly string m_commandkey = Radiation.Common.Communication.APIMethods.CLIENT_SET_INVISIBLE;

        public ClientSetInvisible()
        {
        }

        public string commandKey()
        {
            return m_commandkey;
        }

        public string requiredPermission()
        {
            return null;
        }

        public void execute(string[] commands, Client client)
        {
            if (!client.Invisible)
                Commands.Invisible.switchInvisibility(client);
        }
    }
}
